<?php

// Admin Routing
Router::connect('/admin/install', array('plugin' => 'admin', 'controller' => 'admin', 'action' => 'install'));
Router::connect('/admin/login', array('plugin' => 'admin', 'controller' => 'admin', 'action' => 'login'));
Router::connect('/admin/logout', array('plugin' => 'admin', 'controller' => 'admin', 'action' => 'logout'));
Router::connect('/admin/dashboard', array('plugin' => 'admin', 'controller' => 'admin', 'action' => 'dashboard'));

// Lists Routing
Router::connect('/admin/lists/:model', array('plugin' => 'admin', 'controller' => 'lists', 'action' => 'index'));
Router::connect('/admin/lists/:model/:action', array('plugin' => 'admin', 'controller' => 'lists'));
Router::connect('/admin/lists/:model/:action/*', array('plugin' => 'admin', 'controller' => 'lists'));
